.main {
    /* margin-top: 64px; */
    padding: 128px 320px;
    padding-bottom: 52px;
    /* position: absolute;
    top: 64px;
    bottom: 74px;
    width: 100%; */
    background: #f8f8f8;
    flex-flow: column;
    height: 100%;
}

.search_container {
    display: flex;
    margin-bottom: 24px;
}

.search_input {
    width: 100%;
    margin-right: 20px;
    padding: 10px 20px;
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid #f3f3f3;
    font-size: 20px;
}

.search_input::placeholder {
    color: #bbb;
}

.search_btn {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    background-image: url('/imgs/icons/search.svg');
    background-repeat: no-repeat;
    background-size: 36px 36px;
    background-position: center;
    border-radius: 4px;
    box-shadow: 0px 0px 45px 0px rgba(2, 176, 237, 0.3);
}

.search_btn:disabled {
    cursor: auto;
    background-color: #d3d3d3;
    box-shadow: none;
}

.heading_container {
    margin-top: 64px;
    margin-bottom: 23px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.heading {
    font-size: 40px;
    line-height: 44px;
}

.btn_list,
.btn_grid {
    width: 50px;
    height: 50px;
    border-radius: 4px;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
}

.btn_grid_active,
.btn_list_active {
    background-color: var(--accent-color);
}

.btn_grid {
    background-image: url('public/imgs/icons/grid-inactive.svg');
}

.btn_grid_active {
    background-image: url('public/imgs/icons/grid-active.svg');
}

.btn_list {
    background-image: url('public/imgs/icons/list-inactive.svg');
    margin-right: 10px;
}

.btn_list_active {
    background-image: url('public/imgs/icons/list-active.svg');
}

.news_list {
    height: 70%;
}

.news_list_grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* loading */

.loading_container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading_text {
    color: #858282;
    font-size: 24px;
    line-height: 130%;
}

.loading_popup_container {
    height: 100vh;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.03);
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
    opacity: 0;
    transition: 0.05s;
}

.loading_popup_container.loading_active {
    opacity: 1;
    pointer-events: all;
}

.loading_content {
    background-image: url('/imgs/icons/loading.svg');
    background-repeat: no-repeat;
    background-position: center left;
    background-size: 120px;
    padding: 40px;
    border-radius: 12px;
    background-color: #fff;
    width: 456px;
    transform: scale(0.5);
    transition: 0.4s all;
    font-size: 18px;
    line-height: 20px;
    position: relative;
}

.loading_content.loading_active {
    transform: scale(1);
}

.loading_popup_text {
    padding-left: 80px;
    font-size: 24px;
    line-height: 130%;
}

.loading_error {
    width: 470px;
    background-image: url('/imgs/icons/error.png');
    background-size: 60px;
    background-position: left 40px top 50%;
}
